<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>日历控件</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="box"></div>
</body>
</html>
<script src="http://192.168.1.250/lottery/vender/jquery/jquery-1.11.1.js"></script>
<script src="calendar.js"></script>
<script>
  $.ajax({
    url:"post.php",
    type: 'post',
    dataType: 'json',
  }).done(function(json){
    if (json.errno==0) {
      var datas = json.items;
      calendar.init($('.box'),datas);
    }
  })

</script>
